package com.weigee.ktv.presenter.adapter.pager

import android.support.v4.app.FragmentManager
import com.linde.library.adapter.BaseFragmentStatePagerAdapter
import com.weigee.ktv.view.fragment.ApplySupermarketOrderRoomFragment

/**
 * Created by linde on 2017/6/3.
 * LinDe
 */

class ApplySupermarketOrderPagerAdapter(manager: FragmentManager) : BaseFragmentStatePagerAdapter(manager) {
    init {
        var fragment: ApplySupermarketOrderRoomFragment
        for (index in 0..(5 - 1)) {
            fragment = ApplySupermarketOrderRoomFragment()
            fragmentList.add(fragment)
        }
    }

    override fun getPageTitle(position: Int): CharSequence {
        when (position) {
            0 -> {
                return "小"
            }
            1 -> {
                return "中"
            }
            2 -> {
                return "大"
            }
            3 -> {
                return "豪"
            }
            4 -> {
                return "VIP"
            }
            else -> {
                return ""
            }
        }
    }
}
